<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

echo '<h2>Lista de todas as contas </h2>';
if($this->session->flashdata('excluirok')):
   echo '<p>'.$this->session->flashdata('excluirok').'</p>';
endif;
$table_setup = array(
    'table_open' => '<table class="zebraTable" width="100%">',
    'row_start' => '<tr class="rowOdd">',
    'row_alt_start' => '<tr class="rowEven">',
    
);
$this->table->set_template($table_setup); //apply the settings
$this->table->set_heading('ID','DESCRIÇÃO','AÇÕES');

foreach ($conta as $linha):
    $this->table->add_row($linha->id_conta, $linha->descricao,  anchor("PrincipalController/alterar/$linha->id_conta",'Editar').' | '.anchor("PrincipalController/deletar/$linha->id_conta",'Excluir'));
endforeach;

echo $this->table->generate();
//echo $paginacao;
if($paginacao) echo $paginacao;
 

?>


